package com.jr9z.jrjz.service;

import com.jr9z.jrjz.entity.TeamMember;
import org.springframework.stereotype.Service;

import java.lang.reflect.Member;
import java.util.List;

/**
 * @Author:Mrzhang
 * @Description:团队成员Service
 * @Date:2019.03.25 21:45
 **/
public interface TeamMemberService {
    /**
     * 根据id删除成员
     * @param menberId
     * @return
     */
    int deleteByPrimaryKey(Integer menberId);

    /**
     * 添加成员
     * @param record
     * @return
     */
    int insert(TeamMember record);

    /**
     * 添加成员：动态SQL
     * @param record
     * @return
     */
    int insertSelective(TeamMember record);

    /**
     * 根据id查询成员
     * @param menberId
     * @return
     */
    TeamMember selectByPrimaryKey(Integer menberId);

    /**
     * 更新成员信息：动态SQL
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(TeamMember record);

    /**
     * 更新成员信息
     * @param record
     * @return
     */
    int updateByPrimaryKey(TeamMember record);

    long getMemberCount();

    List<TeamMember> getAllMember();
}
